﻿///*
// * TiffImageGridData
// * 
// * initial implementation : 20.9.2008
// *
// * Copyright (c) Adam Sida, asida@centrum.cz.
// * All rights reserved.
// * 
// * for license see Petra.Gis.License.txt
// */
//using System;
//using System.Collections.Generic;
//using Petra.Gis.Geometry.Support;
//using Petra.Gis.Geometry.GridSupport;
//using Petra.Gis.Imaging.Tiff;
//using System.Windows.Media.Imaging;


//namespace Petra.Gis.DataServices
//{
//  /// <summary>
//  /// represents instance of tiff image decoder
//  /// that can manage tiff file structure
//  /// </summary>
//  class TiffImageGridData : GridData
//  {

//    public TiffImageGridData(string filename, BoundingBox bounds)
//    {
//      _bounds = bounds;
//      _dataLocation = filename;

//      Decoder d = new Decoder(filename, BitmapCreateOptions.DelayCreation, BitmapCacheOption.OnDemand);

//      foreach (BlockBitmapSource p in d.Frames)
//        _frames.Add(new TiffFrame(p, bounds));

//    }

    
    

    
//    public override BoundingBox GetEnvelope()
//    {
//      return _bounds;
//    }





//    public override bool IsGridWithOverviews
//    {
//      //todo: perform more tests to determine....
//      get
//      {
//        if (_frames.Count > 1)
//          return true;
//        else
//          return false;
//      }
//    }

//  }
//}
